import Vue from "vue"
import Vuex from "vuex"
//引入关于用户信息相关的vuex
import user from "./user.js"
Vue.use(Vuex)

const actions = {}
const mutations = {}
const state = {
}
const getters = {}

export default new Vuex.Store({
    actions,
    mutations,
    state,
    getters,

    //vuex中关于登录页面的js，注入模块
    modules:{
        user
    }
})